In [1]:
"""
Plot departamental rates by years
"""
import pandas
from pandas_profiling import ProfileReport
In [2]:
upstream = ["get_annual"]
product = None
In [3]:
# Parameters
upstream = {
    "get_annual": {
        "data": "/home/lmorales/work/stillbirth-book/pipeline/_products/rates/rates-by-year.parquet"
    }
}
product = {
    "nb": "/home/lmorales/work/stillbirth-book/pipeline/profiles/profile-annual-rates.html"
}

Leer tasas

In [4]:
df = pandas.read_parquet(upstream['get_annual']['data'])

Profile

In [5]:
ProfileReport(df, title="Annual Rates Data Profiling Report")
Out[5]:

In [ ]: